﻿using Baula.TextGen.Framework.ComInterop;

namespace Baula.TextGen.Framework.Sections
{
    public class UnknownPlaceholderSectionException : TextGenException
    {
        private readonly string _placeholderSectionName;

        public UnknownPlaceholderSectionException(string placeholderSectionName)
            : base(string.Format("There is not PlaceholderSection named \"{0}\".", placeholderSectionName), ErrorCodes.UnknownPlaceholderSection)
        {
            _placeholderSectionName = placeholderSectionName;
        }

        public string PlaceholderSectionName
        {
            get { return _placeholderSectionName; }
        }
    }
}